package edu.ynu.se.xiecheng.achitectureclass.demo.dao;

import edu.ynu.se.xiecheng.achitectureclass.common.dao.LogicDAO;
import edu.ynu.se.xiecheng.achitectureclass.demo.entity.Device;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceDao extends LogicDAO<Device, Long> {
    Device findDeviceById(Long id);
    Device findDeviceBySerialNumber(String serialNumber);
    List<Device> findAllByTypeOrderByIdAsc(String type);
}